﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    public partial class qgzx_cwy_enroll
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_cwy_enroll ToPOCO()
        {
            qgzx_cwy_enroll poco = new qgzx_cwy_enroll()
            {
                EnrollId = this.EnrollId,
                GeneralID = this.GeneralID,
                StudentNum = this.StudentNum,
                StudentName = this.StudentName,
                IsAgree = this.IsAgree,
                IsWorked = this.IsWorked,
                BeHeadman = this.BeHeadman,
                IsTakeZMJH = this.IsTakeZMJH,
                EnrollTime = this.EnrollTime,
                Interviewer = this.Interviewer,
                ViewComment = this.ViewComment,
                ViewScore = this.ViewScore,
                ViewEntering = this.ViewEntering,
                EnteringTime = this.EnteringTime,
                TrainAbsent = this.TrainAbsent,
                TrainScore = this.TrainScore,
                PhysicalCheck = this.PhysicalCheck,
                FinalScore = this.FinalScore,
                IsPassed = this.IsPassed,
                Reason = this.Reason
            };
            return poco;
        }
        #endregion

        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.CwyEnroll ToViewModel()
        {
            ViewModel.CwyEnroll poco = new ViewModel.CwyEnroll()
            {
                EnrollId = this.EnrollId,
                GeneralID = this.GeneralID,
                StudentNum = this.StudentNum,
                StudentName = this.StudentName,
                IsAgree = this.IsAgree,
                IsWorked = this.IsWorked,
                BeHeadman = this.BeHeadman,
                IsTakeZMJH = this.IsTakeZMJH,
                EnrollTime = this.EnrollTime,
                Interviewer = this.Interviewer,
                ViewComment = this.ViewComment,
                ViewScore = this.ViewScore,
                ViewEntering = this.ViewEntering,
                EnteringTime = this.EnteringTime,
                TrainAbsent = this.TrainAbsent,
                TrainScore = this.TrainScore,
                PhysicalCheck = this.PhysicalCheck,
                FinalScore = this.FinalScore,
                IsPassed = this.IsPassed,
                Reason = this.Reason
            };
            return poco;
        }
        #endregion
    }
}
